package net.zoneland.data.dataprofiling.system.service;

import net.zoneland.data.dataprofiling.common.domain.Tree;
import net.zoneland.data.dataprofiling.system.domain.MenuEntity;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
public interface MenuService {
	Tree<MenuEntity> getSysMenuTreeByuserid(Long userId);

	List<Tree<MenuEntity>> listMenuTree(Long id);

	Tree<MenuEntity> getTree();

	Tree<MenuEntity> getTree(Long id);

	List<MenuEntity> list();

	int remove(Long id);

	int save(MenuEntity menu);

	int update(MenuEntity menu);

	MenuEntity get(Long id);

	Set<String> listPerms(Long userId);
}
